home *** CD-ROM | disk | FTP | other *** search
- Path: student.uq.edu.au!s224539
- From: s224539@student.uq.edu.au (Sahid)
- Newsgroups: comp.lang.c
- Subject: HELP : handling segmentation fault
- Date: 29 Feb 1996 15:35:08 GMT
- Organization: University of Queensland
- Message-ID: <4h4h3c$c5o@dingo.cc.uq.oz.au>
- NNTP-Posting-Host: student2.cc.uq.oz.au
- X-Newsreader: TIN [version 1.2 PL1]
-
- Does anyone can explain me how to handle the following error message ?
- Sometime the program run normally, however one time it reported the error.
-
- Program received signal SIGSEGV, Segmentation fault.
- 0x8004ce5 in check_control_in_t__FP10partitionsP8meetingsi (timetable=0x839a000,
- scs=0x8029000, t=2) at tsp.c:373
- 373 scs1=timetable[t].index_scs_list[i];
- (gdb) list
-
- 367 conflict check_control_in_t(partitions huge timetable[], meetings huge
- scs[],int t){
- 368 unsigned int i,j,scs1,scs2;
- 369 conflict result={0,0,0},scs12;
- 370
- 371 // calculate student and lecturer conflicts ...
- 372 for(i=0;i<timetable[t].no_scs-1;i++){
- 373 scs1=timetable[t].index_scs_list[i];
- 374 for(j=i+1;j<timetable[t].no_scs;j++){
- 375 scs2=timetable[t].index_scs_list[j];
- 376 scs12=find2scs_conflict(scs, scs1, scs2);
- 377 if(scs12.students+scs12.lecturers>0){
- 378 result.students +=scs12.students;
- 379 result.lecturers +=scs12.lecturers;
- 380 }
- 381 }
- 382 }
- 383 return result;
- 384 }
-
- Thanks in advance for any suggestion.
-
- @&_____________________________________________________________________
- S y a h i d = sah@maths.uq.oz.au . Jurdik Matematika . * .
- Departement of Mathematics _-_|\ FPMIPA IKIP Yogyakarta (\~|~/)
- University of Queensland / * Indonesia 55281 *~-V-~*
- Brisbane, Australia 4072 _______\_.-._/ Ph (0274)586286 Psw(333) -IKIP-
- Ph/Fax (07)3652686/870 2272 *********v ===============================
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~e-mail (alt) : s224539@student.uq.edu.au **
-
-
-